package com.example.design.patterns.geekbang.结构型.结构类似的模式.适配器模式.统一多个类的接口设计.refactor;

import com.example.design.patterns.geekbang.结构型.结构类似的模式.适配器模式.统一多个类的接口设计.ASensitiveWordsFilter;

public class ASensitiveWordsFilterAdaptor implements ISensitiveWordsFilter {
    private ASensitiveWordsFilter filter;

    public String filter(String text) {
        String maskedText = filter.filterSexyWords(text);
        maskedText = filter.filterPoliticalWords(maskedText);
        return maskedText;
    }
}
